﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using SmartWarehouse.Common;
using LightWeightORM.ORM.TableAccessor;
using SmartWarehouse.ORM.Entity;
using SmartWarehouse.Config;


public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        SwUser user = AccessorFactory.UserAccessor.GetOne(new Filter(SwUser._Name, "ok", ComparisonOperator.Equal));


        //SwUser[] users = userAccessor.GetMuch(new Filter(SwUser._Address, "苏州工业园区", ComparisonOperator.Equal));
        //SwUser user = new SwUser();
        //user.Password = "ok";
        //user.Name = "Anco";
        //user.Address = "苏州区";
        //userAccessor.Update(user);



        //DataTable dt = userAccessor.ToDataTable();

        //this.GridView1.DataSource = dt;
        //this.GridView1.DataBind();
    }
}
